package com.hmall.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name = "user_like")
public class UserLike {
    /**
     * 猜你喜欢主键
     */
    @Id
    private Integer id;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private Integer userId;

    /**
     * 产品id
     */
    @Column(name = "product_id")
    private Integer productId;

    /**
     * 浏览数目
     */
    @Column(name = "view_count")
    private Integer viewCount;

    /**
     * 获取猜你喜欢主键
     *
     * @return id - 猜你喜欢主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置猜你喜欢主键
     *
     * @param id 猜你喜欢主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取用户id
     *
     * @return user_id - 用户id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置用户id
     *
     * @param userId 用户id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取产品id
     *
     * @return product_id - 产品id
     */
    public Integer getProductId() {
        return productId;
    }

    /**
     * 设置产品id
     *
     * @param productId 产品id
     */
    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    /**
     * 获取浏览数目
     *
     * @return view_count - 浏览数目
     */
    public Integer getViewCount() {
        return viewCount;
    }

    /**
     * 设置浏览数目
     *
     * @param viewCount 浏览数目
     */
    public void setViewCount(Integer viewCount) {
        this.viewCount = viewCount;
    }
}